#ifndef MYTASKS_H
#define MYTASKS_H
#include <QObject>
#include <QMap>
#include <QList>

namespace Ui {
class MainWindow;
}

class AxisAdjust : public QObject{
    Q_OBJECT

public slots:
    void doAdjust(const QVector<qreal> data);
signals:
    void resultReady(QVector<qreal> ampList);
private:
    //记录坐标轴上的点
    QVector<QTime> vecTime;
    QVector<QVector<qreal>> numVis{QVector<qreal>(), QVector<qreal>(), QVector<qreal>()};
    QVector<QMap<qreal, int>> hashMap{QMap<qreal, int>(), QMap<qreal, int>(), QMap<qreal, int>()};
    QVector<qreal> extremList{0,0,0,0,0,0};//三图接收的最小最大值
};

class DataDisposal : public QObject{
    Q_OBJECT

public slots:
    void doDisposal(const QByteArray data);
signals:
    void dataReady(const QVector<qreal> dataList);
private:
    QVector<qreal> AccWithGList{0,0,0};
    QVector<qreal> AccWithoutGList{0,0,0};
    QVector<qreal> AngList{0,0,0};
    QVector<qreal> dataList;
};




#endif // MYTASKS_H
